using Services;
using UnityEngine;

public class Probe : MonoBehaviour
{
    private LightController lightController;

    public Color color;
    public float intensity;
    public float intensity_exceptAmbient;

    private void Awake()
    {
        lightController = ServiceLocator.Get<LightController>();
    }

    private void Update()
    {
        color = lightController.GetColor(transform.position);
        intensity = lightController.GetIntensity(transform.position);
        intensity_exceptAmbient = lightController.GetIntensity(transform.position, true);
    }
}
